<!DOCTYPE html>
<html>
<head>
  <title>Remote CDT</title>
  <style>
    body {
      margin: 0;
      padding: 20px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background-color: #f5f5f5;
    }
    .container {
      max-width: 1000px;
      margin: 0 auto;
    }
    .event-filter {
      margin-bottom: 15px;
      padding: 10px;
      background-color: #ffffff;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .event-filter input {
      width: 100%;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
    }
    #output {
      height: calc(100vh - 120px);
      padding: 15px;
      overflow-y: auto;
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .message {
      padding: 12px 16px;
      margin-bottom: 12px;
      border-radius: 6px;
      font-family: 'Consolas', monospace;
      white-space: pre-wrap;
      font-size: 14px;
      line-height: 1.5;
      border: 1px solid #e0e0e0;
    }
    .message.log { background-color: #f8f9fa; }
    .message.info { background-color: #e3f2fd; color: #0d47a1; }
    .message.warn { background-color: #fff3e0; color: #e65100; }
    .message.error { background-color: #ffebee; color: #c62828; }
    .message .timestamp {
      color: #666;
      font-weight: bold;
    }
    .message .stack-trace {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #eee;
      color: #666;
      font-size: 12px;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="event-filter">
      <input type="text" id="eventFilter" placeholder="输入事件名称进行过滤...">
    </div>
    <div id="output"></div>
  </div>
  <script src="renderer.js"></script>
</body>
</html>